<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/include.inc.jsp"%>

<div class="pageContent">
	
	<form method="post" action="student/toAdd" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone)">
		<div class="pageFormContent" layoutH="80">

			<dl>
				<dt>姓名：</dt>
				<dd>
					<input type="text" name="name" maxlength="20" class="required" />
				</dd>
			</dl>
			<dl>
				<dt>性别：</dt>
				<dd>
					<select name="sex" width="30">
						<option value="">未选择</option>
						<option value="男">男</option>
						<option value="女">女</option>
					</select>
				</dd>
			</dl>
			<dl>
				<dt>年龄：</dt>
				<dd>
					<input type="text" name="age" maxlength="20" class="required"/>
				</dd>
			</dl>
			<dl>
				<dt>地址：</dt>
				<dd>
					<input type="text" name="address" maxlength="20" />
				</dd>
			</dl>
			<dl>
				<dt>电话：</dt>
				<dd>
					<input type="text" name="studentInfo.phone" maxlength="20" class="digits" />
				</dd>
			</dl>
			<dl>
				<dt>邮箱：</dt>
				<dd>
					<input type="text" name="studentInfo.email" maxlength="20" class="email" />
				</dd>
			</dl>
			<dl>
				<dt>父母：</dt>
				<dd>
					<input type="text" name="studentInfo.parentName" maxlength="20" class="required" />
				</dd>
			</dl>
			<dl>
				<dt>班级：</dt>
				<dd>
					<select name="classId">
							<option value="">未选择</option>
							<c:forEach var="stuClass" items="${classList }">
							<option value="${stuClass.classId }" >${stuClass.className }</option>
							</c:forEach>
					</select>
				</dd>
			</dl>
			
			
		<!-- 	<div class="divider"></div> -->
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>


<script type="text/javascript">
function customvalidXxx(element){
	if ($(element).val() == "xxx") return false;
	return true;
}
</script>
